package com.feisuanyz.pojo.query;

import lombok.Data;
import jakarta.validation.constraints.NotNull;
import lombok.NoArgsConstructor;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 食物选择查询入参实体类
 *
 * @author Chenke Zhao
 * @date 2025-03-06 10:18:05
 */
@Data
@NoArgsConstructor
public class MealSelectionQuery {

    @NotNull(groups = { QueryGroup.class }, message = "用户ID不能为空")
    private Integer userId;

    @NotBlank(groups = { QueryGroup.class }, message = "食物类型不能为空")
    private String mealType;

    /**
     * 分页页码:分页页码，必填
     */
    @NotNull(groups = { QueryGroup.class }, message = "分页页码不能为空")
    @Schema(description = "分页页码:分页页码，必填")
    private Long pageIndex;

    /**
     * 分页尺寸:分页尺寸，必填
     */
    @NotNull(groups = { QueryGroup.class }, message = "分页尺寸不能为空")
    @Schema(description = "分页尺寸:分页尺寸，必填")
    private Long pageSize;
}
